Skip to content

Migrate D3D10 suite to use the new test registration framework#2662

Open
ahesham-arm wants to merge 5 commits intoKhronosGroup:mainfrom
ahesham-arm:d3d
Open

Migrate D3D10 suite to use the new test registration framework#2662
ahesham-arm wants to merge 5 commits intoKhronosGroup:mainfrom
ahesham-arm:d3d

Conversation

@ahesham-arm
Copy link
Copy Markdown
Collaborator

Contributes to #2181

Rename `DirectXWrapper` to `DirectX12Wrapper` and only enable it if
D3D12 is supported.

Update the CMakeLists.txt files to use `target` properties instead of
global project ones.

No functional change.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Add CMake support for D3D10 and D3D11 in the `directx_wrapper` project.
Including the wrapper subdirectory is now enabled if any of
D3D{10,11,12} are supported.

No code changes, scaffolding only.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
@ahesham-arm ahesham-arm changed the title Migrate D3D suite to use the new test migration framework Migrate D3D10 suite to use the new test migration framework Apr 13, 2026
These two new classes wrap the enumeration and creation of D3D10 and
D3D11 adapters and logical devices. Adapters and their related devices
are grouped together using simple `DeviceEntry` structs and tracked
using a `std::vector` and `ComPtr` to avoid leaking resources.`

No functional change, as these wrappers are not yet used.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Replace the custom D3D10 main loop with `runTestHarnesWithCheck` and
`REGISTER_TEST`.

Add a suite state to initialise D3D once, and discover the
adapter/device associated with the OpenCL device under test.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Remove redundant state and helper abstractions.

Remove device and window creation logic as it is not used anymore.

Remove test stats tracking, use the harness instead.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
@ahesham-arm ahesham-arm changed the title Migrate D3D10 suite to use the new test migration framework Migrate D3D10 suite to use the new test registration framework Apr 13, 2026
@ahesham-arm ahesham-arm requested a review from joselopeqti April 20, 2026 15:55
@ahesham-arm
Copy link
Copy Markdown
Collaborator Author

Hi @joselopeqti I added you as a reviewer just to confirm that this change does not break yout existing DX12 tests in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant